<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DOCA-AR: doca_ar_env.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DOCA-AR<span id="projectnumber">&#160;1.0</span>
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('doca__ar__env_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">doca_ar_env.h</div></div>
</div><!--header-->
<div class="contents">
<a href="doca__ar__env_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#ifndef DOCA_AR_ENV_H_</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#define DOCA_AR_ENV_H_</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;rte_byteorder.h&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;doca_log.h&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;doca_argp.h&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;dpdk_utils.h&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;doca_flow.h&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;rte_ether.h&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;rte_ip.h&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;rte_udp.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#include &lt;rte_tcp.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="doca__ar__env_8h.html#a71d6ed3c98e428e7af3dac82a615c162">   25</a></span><span class="preprocessor">#define NB_PORTS 2                                 </span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="doca__ar__env_8h.html#ad55ed8df1fff8ba66c00465a327ddb93">to_host_port</a>;                           </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="doca__ar__env_8h.html#a5cbdb627a9e93ccfcf24a543c38518df">to_net_port</a>;                            </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keyword">extern</span> <span class="keyword">struct </span>doca_flow_port *<a class="code hl_variable" href="doca__ar__env_8h.html#a7c3fad598872f32acd31eabf6132ebf6">ports</a>[<a class="code hl_define" href="doca__ar__env_8h.html#a71d6ed3c98e428e7af3dac82a615c162">NB_PORTS</a>];     </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="keyword">extern</span> <span class="keyword">struct </span>application_dpdk_config <a class="code hl_variable" href="doca__ar__env_8h.html#a59bacbf1dc20a79a0530b4510c292038">dpdk_config</a>; </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="keywordtype">int</span> <a class="code hl_function" href="doca__ar__env_8h.html#ac9c01ba433d34108d4701fa3a19b0e1a">doca_ar_env_init</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="keywordtype">void</span> <a class="code hl_function" href="doca__ar__env_8h.html#adfaacf564e7c185b167de9150a484904">doca_ar_env_destroy</a>();</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#endif </span><span class="comment">/* DOCA_AR_ENV_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="adoca__ar__env_8h_html_a59bacbf1dc20a79a0530b4510c292038"><div class="ttname"><a href="doca__ar__env_8h.html#a59bacbf1dc20a79a0530b4510c292038">dpdk_config</a></div><div class="ttdeci">struct application_dpdk_config dpdk_config</div><div class="ttdoc">dpdk config</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:16</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_a5cbdb627a9e93ccfcf24a543c38518df"><div class="ttname"><a href="doca__ar__env_8h.html#a5cbdb627a9e93ccfcf24a543c38518df">to_net_port</a></div><div class="ttdeci">int to_net_port</div><div class="ttdoc">port connected with uplink port</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:24</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_a71d6ed3c98e428e7af3dac82a615c162"><div class="ttname"><a href="doca__ar__env_8h.html#a71d6ed3c98e428e7af3dac82a615c162">NB_PORTS</a></div><div class="ttdeci">#define NB_PORTS</div><div class="ttdoc">we use 2 SF ports</div><div class="ttdef"><b>Definition</b> doca_ar_env.h:25</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_a7c3fad598872f32acd31eabf6132ebf6"><div class="ttname"><a href="doca__ar__env_8h.html#a7c3fad598872f32acd31eabf6132ebf6">ports</a></div><div class="ttdeci">struct doca_flow_port * ports[NB_PORTS]</div><div class="ttdoc">pointer of doca-flow port</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:15</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_ac9c01ba433d34108d4701fa3a19b0e1a"><div class="ttname"><a href="doca__ar__env_8h.html#ac9c01ba433d34108d4701fa3a19b0e1a">doca_ar_env_init</a></div><div class="ttdeci">int doca_ar_env_init(int argc, char **argv)</div><div class="ttdoc">build doca-flow and dpdk env</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:115</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_ad55ed8df1fff8ba66c00465a327ddb93"><div class="ttname"><a href="doca__ar__env_8h.html#ad55ed8df1fff8ba66c00465a327ddb93">to_host_port</a></div><div class="ttdeci">int to_host_port</div><div class="ttdoc">port connected with host pf</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:23</div></div>
<div class="ttc" id="adoca__ar__env_8h_html_adfaacf564e7c185b167de9150a484904"><div class="ttname"><a href="doca__ar__env_8h.html#adfaacf564e7c185b167de9150a484904">doca_ar_env_destroy</a></div><div class="ttdeci">void doca_ar_env_destroy()</div><div class="ttdoc">release all the resource of dpdk and doca-flow</div><div class="ttdef"><b>Definition</b> doca_ar_env.c:169</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="doca__ar__env_8h.html">doca_ar_env.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
